﻿namespace Mes.Domain.BoundedContext.Entities.MasterData
{
    public class ProductionUnit : EntityBase, ISoftDelete
    {
        /// <summary>
        /// 生产单元名称
        /// </summary>
        public string ProductionUnitName { get; set; } = string.Empty;

        /// <summary>
        /// 生产单元编码
        /// </summary>
        public string ProductionUnitCode { get; set; } = string.Empty;

        /// <summary>
        /// 生产单元类型 关联生产单元类型配置表主键
        /// </summary>
        public int ProductionUnitTypeId { get; set; } = 0;
        public string ProductionUnitType { get; set; } = string.Empty;

        /// <summary>
        /// 父级生产单元 关联此表主键
        /// </summary>
        public int ParentProductionUnitId { get; set; } = 0;
        public string? ParentProductionUnit { get; set; } = string.Empty;

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enabled { get; set; } = false;

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
